<template>
  <div>
    <van-tabbar v-model="active" route>
      <van-tabbar-item to="/home" icon=" toutiao toutiao-shouye">
        首页
      </van-tabbar-item>
      <van-tabbar-item to="/answer" icon=" toutiao toutiao-wenda">
        问答
      </van-tabbar-item>
      <van-tabbar-item to="/video" icon=" toutiao toutiao-shipin">
        视频
      </van-tabbar-item>
      <van-tabbar-item to="/my" icon=" toutiao toutiao-wode">
        {{ $store.state.user.tokens ? "我的" : "未登录" }}
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style lang="less" scoped>
</style>
